package com.andaily.domain.dto.developer;

import com.andaily.domain.developer.Sprint;
import com.andaily.domain.developer.SprintStatus;
import com.andaily.domain.dto.AbstractDTO;

/**
 * Date: 13-8-7
 *
 * @author Shengzhao Li
 */
public class SprintSimpleDto extends AbstractDTO {

    private String name;
    private SprintStatus status;

    public SprintSimpleDto() {
    }

    public SprintSimpleDto(Sprint sprint) {
        super(sprint.guid());
        this.name = sprint.name();
        this.status = sprint.status();
    }

    public SprintStatus getStatus() {
        return status;
    }

    public void setStatus(SprintStatus status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
